[Ivy]
[>Created: Fri Jan 25 15:54:25 ICT 2013]
13C617FAC8E946E0 3.17 #module
>Proto >Proto Collection #zClass
ln0 login Big #zClass
ln0 B #cInfo
ln0 #process
ln0 @TextInP .resExport .resExport #zField
ln0 @TextInP .type .type #zField
ln0 @TextInP .processKind .processKind #zField
ln0 @AnnotationInP-0n ai ai #zField
ln0 @TextInP .xml .xml #zField
ln0 @TextInP .responsibility .responsibility #zField
ln0 @RichDialog f5 '' #zField
ln0 @StartRequest f0 '' #zField
ln0 @EndTask f1 '' #zField
ln0 @PushWFArc f2 '' #zField
ln0 @GridStep f3 '' #zField
ln0 @PushWFArc f4 '' #zField
ln0 @PushWFArc f6 '' #zField
>Proto ln0 ln0 login #zField
ln0 f5 targetWindow NEW:card: #txt
ln0 f5 targetDisplay TOP #txt
ln0 f5 richDialogId ch.ivy.demo.frmLogin #txt
ln0 f5 startMethod start() #txt
ln0 f5 type ch.ivy.demo.Data #txt
ln0 f5 requestActionDecl '<> param;' #txt
ln0 f5 responseActionDecl 'ch.ivy.demo.Data out;
' #txt
ln0 f5 responseMappingAction 'out=in;
' #txt
ln0 f5 windowConfiguration '* ' #txt
ln0 f5 isAsynch false #txt
ln0 f5 isInnerRd false #txt
ln0 f5 userContext '* ' #txt
ln0 f5 86 188 36 24 20 -2 #rect
ln0 f5 @|RichDialogIcon #fIcon
ln0 f0 outLink start.ivp #txt
ln0 f0 type ch.ivy.demo.Data #txt
ln0 f0 inParamDecl '<> param;' #txt
ln0 f0 actionDecl 'ch.ivy.demo.Data out;
' #txt
ln0 f0 guid 13C61803420A90F8 #txt
ln0 f0 requestEnabled true #txt
ln0 f0 triggerEnabled false #txt
ln0 f0 callSignature start() #txt
ln0 f0 taskData '#
#Tue Jan 22 16:04:17 ICT 2013
' #txt
ln0 f0 taskAndCaseSetupAction 'import ch.ivyteam.ivy.workflow.TaskUpdateDefinition;
ch.ivyteam.ivy.workflow.TaskUpdateDefinition taskUpdDef = new ch.ivyteam.ivy.workflow.TaskUpdateDefinition();
import ch.ivyteam.ivy.request.impl.DefaultCalendarProxy;
DefaultCalendarProxy calendarProxy = ivy.cal as DefaultCalendarProxy;
taskUpdDef.setPriority(ch.ivyteam.ivy.workflow.WorkflowPriority.valueOf(2));
taskUpdDef.setExpiryActivator("Everybody");
taskUpdDef.setExpiryPriority(ch.ivyteam.ivy.workflow.WorkflowPriority.valueOf(2));
engine.updateCurrentTask(taskUpdDef);
' #txt
ln0 f0 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>start.ivp</name>
    </language>
</elementInfo>
' #txt
ln0 f0 @C|.responsibility Everybody #txt
ln0 f0 91 67 26 26 14 0 #rect
ln0 f0 @|StartRequestIcon #fIcon
ln0 f1 type ch.ivy.demo.Data #txt
ln0 f1 91 267 26 26 14 0 #rect
ln0 f1 @|EndIcon #fIcon
ln0 f2 expr out #txt
ln0 f2 104 212 104 267 #arcP
ln0 f3 actionDecl 'ch.ivy.demo.Data out;
' #txt
ln0 f3 actionTable 'out=in;
' #txt
ln0 f3 actionCode 'import ch.ivy.demo.UserInfo;
UserInfo user1 = new UserInfo();
user1.userRole = "dep_hr";
user1.firstName = "Barbara";
user1.lastName = "Messi";
user1.password ="123";
user1.userName ="barbara";
user1.isSuccessful = false;

UserInfo user2 = new UserInfo();
user2.userRole = "hr_consulstant";
user2.firstName = "Roger";
user2.lastName = "Xavi";
user2.isSuccessful = false;
user2.userName ="roger";
user2.password ="123";

in.groupUser.listUser.add(user1);
in.groupUser.listUser.add(user2);

ivy.#session.setAttribute("userList",in.groupUser);

' #txt
ln0 f3 type ch.ivy.demo.Data #txt
ln0 f3 @C|.xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language>
        <name>dummy data</name>
        <nameStyle>10,7
</nameStyle>
    </language>
</elementInfo>
' #txt
ln0 f3 86 116 36 24 20 -2 #rect
ln0 f3 @|StepIcon #fIcon
ln0 f4 expr out #txt
ln0 f4 104 93 104 116 #arcP
ln0 f6 expr out #txt
ln0 f6 104 140 104 188 #arcP
>Proto ln0 .type ch.ivy.demo.Data #txt
>Proto ln0 .processKind NORMAL #txt
>Proto ln0 .xml '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<elementInfo>
    <language/>
</elementInfo>
' #txt
>Proto ln0 0 0 32 24 18 0 #rect
>Proto ln0 @|BIcon #fIcon
ln0 f5 mainOut f2 tail #connect
ln0 f2 head f1 mainIn #connect
ln0 f0 mainOut f4 tail #connect
ln0 f4 head f3 mainIn #connect
ln0 f3 mainOut f6 tail #connect
ln0 f6 head f5 mainIn #connect
